import os


# 获取项目路径
def get_pro_path(dirname=None):
    full_path = os.path.abspath(__file__)
    pro_path = os.path.dirname(os.path.dirname(full_path))
    if dirname is not None:
        finall_path = os.path.join(pro_path,dirname)
        return finall_path
    return pro_path



if __name__ == '__main__':
    print(get_pro_path())